<?php
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010 GioCMS (http://www.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * 
 */
?>
<div class="ninhgio">
	<div class="hnavBox pdb5 news-menu">
		<div class="fl news-menu-left"></div>
		<div class="fl news-menu-container">
			<ul class="hnavVNN">
		    	<?php if ($this->menuItems) : ?>
		    	<?php foreach ($this->menuItems as $index => $item) : ?>
		    	<?php if ($item['parent_id'] == 0) : ?>
		    	<li alias="<?php echo $item['link']; ?>">
		    		<a href="<?php echo $item['link']; ?>"><b><?php echo $item['label']?></b></a>
		    	</li>
		    	<?php endif; ?>
				<?php endforeach; ?>
				<?php endif; ?>
		  	</ul>
		  	<div alias="trang-chu" class="hnavSUB" style="display: block;">
		  		<a href="javascript: void(0);" title="Liên hệ quảng cáo">Liên hệ quảng cáo: <b>ninhgio@gmail.com</b> - Mobile: <b>0903.234.638</b></a>
		  	</div>
		  	<?php if ($this->menuItems) : ?>
			<?php foreach ($this->menuItems as $index => $item) : ?>
			<?php if ($item['parent_id'] == 0) : ?>
		  	<div alias="<?php echo $item['link']; ?>" class="hnavSUB" style="display: none;">
		  		<?php foreach ($this->menuItems as $subIndex => $subItem) : ?>
		  		<?php if ($subItem['parent_id'] == $item['item_id']) : ?>
		    	<a href="<?php echo $subItem['link']; ?>"><?php echo $subItem['label']; ?></a> 
		    	<?php endif; ?>
				<?php endforeach; ?>
			</div>
		  	<?php endif; ?>
			<?php endforeach; ?>
			<?php endif; ?>
		</div>
		<div class="fr news-menu-right"></div>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
<?php if (isset($this->currentCategory)) : ?>
menuCurrentAlias = '<?php echo $this->url('news_article_category', $this->currentCategory); ?>';
<?php else : ?>
menuCurrentAlias = '<?php echo $this->url('core_index_index'); ?>';
<?php endif; ?>
</script>